#pragma once

/* 链表节点 */
/* chain node */

template <class T> 
struct chainNode {

    T element;
    chainNode<T> *next;

    chainNode() = default;
    explicit chainNode(const T& element) { this->element = element; next = nullptr;}
    chainNode(const T& element, chainNode<T>* next) 
    {
            this->element = element;
            this->next = next;
    }

};

